﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using Driverplugin;
using Google.Protobuf;
using Grpc.Net.Client;

namespace IoTEdge.Grpc.Server.Libs.config
{
    public class AmrDevice
    {
        #region myr
        public static string GetUI()
        {
            return "{\"device\":[{\"name\":\"IP\",\"label\":\"IP\",\"label_btn\":\"show\",\"label_edit\":\"edit\",\"type\":\"input\",\"is_required\":true,\"col\":24,\"no_format\":1,\"del_params\":[\"device\",\"IP\"],\"edit_params\":[\"device\",\"IP\"],\"show_hide_params\":[\"device\",\"IP\"],\"data_type\":\"string\"},{\"name\":\"Port\",\"label\":\"Port\",\"label_btn\":\"show\",\"label_edit\":\"edit\",\"type\":\"input\",\"is_required\":true,\"col\":24,\"no_format\":1,\"del_params\":[\"device\",\"Port\"],\"edit_params\":[\"device\",\"Port\"],\"show_hide_params\":[\"device\",\"Port\"],\"data_type\":\"string\"},{\"name\":\"User\",\"label\":\"User\",\"label_btn\":\"show\",\"label_edit\":\"edit\",\"type\":\"input\",\"is_required\":true,\"col\":24,\"no_format\":1,\"del_params\":[\"device\",\"User\"],\"edit_params\":[\"device\",\"User\"],\"show_hide_params\":[\"device\",\"User\"],\"data_type\":\"string\"},{\"name\":\"Password\",\"label\":\"Password\",\"label_btn\":\"show\",\"label_edit\":\"edit\",\"type\":\"input\",\"is_required\":true,\"col\":24,\"no_format\":1,\"del_params\":[\"device\",\"Password\"],\"edit_params\":[\"device\",\"Password\"],\"show_hide_params\":[\"device\",\"Password\"],\"data_type\":\"string\"}],\"property\":[{\"name\":\"Address\",\"label\":\"Address\",\"label_btn\":\"show\",\"label_edit\":\"edit\",\"type\":\"select\",\"is_required\":true,\"col\":24,\"no_format\":1,\"select_options\":[{\"id\":\"1\",\"name\":\"Amr_ID\"},{\"id\":\"2\",\"name\":\"Amr_Name\"},{\"id\":\"3\",\"name\":\"Amr_IP\"},{\"id\":\"4\",\"name\":\"Amr_Map_Name\"},{\"id\":\"5\",\"name\":\"Amr_Battery\"},{\"id\":\"6\",\"name\":\"Amr_Pos_X\"},{\"id\":\"7\",\"name\":\"Amr_Pos_Y\"},{\"id\":\"8\",\"name\":\"Amr_Location\"},{\"id\":\"9\",\"name\":\"Amr_Pos_A\"},{\"id\":\"10\",\"name\":\"Amr_Exception\"},{\"id\":\"11\",\"name\":\"Amr_Level\"},{\"id\":\"12\",\"name\":\"Amr_ExceptionCodes\"},{\"id\":\"13\",\"name\":\"Amr_State\"},{\"id\":\"14\",\"name\":\"Amr_Area_ID\"},{\"id\":\"15\",\"name\":\"Amr_State_ID\"},{\"id\":\"16\",\"name\":\"Amr_Map_ID\"},{\"id\":\"17\",\"name\":\"Amr_ErrMessage\"},{\"id\":\"18\",\"name\":\"Amr_Charge\"},{\"id\":\"19\",\"name\":\"Amr_Speed\"}],\"select_options_ori\":[{\"id\":\"1\",\"name\":\"Amr_ID\"},{\"id\":\"2\",\"name\":\"Amr_Name\"},{\"id\":\"3\",\"name\":\"Amr_IP\"},{\"id\":\"4\",\"name\":\"Amr_Map_Name\"},{\"id\":\"5\",\"name\":\"Amr_Battery\"},{\"id\":\"6\",\"name\":\"Amr_Pos_X\"},{\"id\":\"7\",\"name\":\"Amr_Pos_Y\"},{\"id\":\"8\",\"name\":\"Amr_Location\"},{\"id\":\"9\",\"name\":\"Amr_Pos_A\"},{\"id\":\"10\",\"name\":\"Amr_Exception\"},{\"id\":\"11\",\"name\":\"Amr_Level\"},{\"id\":\"12\",\"name\":\"Amr_ExceptionCodes\"},{\"id\":\"13\",\"name\":\"Amr_State\"},{\"id\":\"14\",\"name\":\"Amr_Area_ID\"},{\"id\":\"15\",\"name\":\"Amr_State_ID\"},{\"id\":\"16\",\"name\":\"Amr_Map_ID\"},{\"id\":\"17\",\"name\":\"Amr_ErrMessage\"},{\"id\":\"18\",\"name\":\"Amr_Charge\"},{\"id\":\"19\",\"name\":\"Amr_Speed\"}],\"del_params\":[\"property\",\"Address\"],\"edit_params\":[\"property\",\"Address\"],\"show_hide_params\":[\"property\",\"Address\"],\"data_type\":\"string\"}],\"event\":[]}";
        }
        public static string GetSchema()
        {
            return "{\"device_extension_config\":{\"ip\":{\"enum\":null,\"default\":null,\"column\":\"IP\",\"data_type\":\"string\"},\"password\":{\"enum\":null,\"default\":null,\"column\":\"Password\",\"data_type\":\"string\"},\"port\":{\"enum\":null,\"default\":null,\"column\":\"Port\",\"data_type\":\"string\"},\"user\":{\"enum\":null,\"default\":null,\"column\":\"User\",\"data_type\":\"string\"}}}";
        }
        #endregion
    }
}
